package com.tvshows.structure.bdd;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;


public class ContextLoader
{

    private static ApplicationContext context = new ClassPathXmlApplicationContext( "spring/applicationContext.xml" );

    public static ApplicationContext getContext()
    {
        return context;
    }

    public static Object getBean( String name )
    {
        return context.getBean( name );
    }

}
